<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('user/adminIndex/factory',array('id'=>input('id')))}">组织列表</a></li>
        	<li class="active"><a href="{:url('user/adminIndex/add_factory')}">添加组织</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('user/admin_index/add_factory')}">
			<div class="form-group" id="fempnumber">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>工号</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" name="fempnumber" value="">
				</div>
			</div>
			<div class="form-group" id="factory_id">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>组织</label>
				<div class="col-md-6 col-sm-10">
					<select name="factory_id" class="form-control">
						<option value="">请选择</option>
						<foreach name="factory_list" item="vo">
							<option value="{$vo.id}">{$vo.fname}</option>
						</foreach>
					</select>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<input type="hidden" name="user_id" value="{:input('id')}">
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
					<a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>